﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GenericLibrariesToolKit;
using Model;

namespace BLL.Comment.Impl
{
    /// <summary>
    /// 网站评论业务接口实现
    /// </summary>
    public class SiteCommentBOImpl : DaoSupport<SiteComment>, SiteCommentBO
    {
        public List<SiteComment> ShowTopSiteComment(int topNumber)
        {
            Dictionary<string, string> orderByDictionary = new Dictionary<string, string>();
            //添加排序条件及排序方式
            orderByDictionary.Add("SiteCommentDate", "desc");
            //执行查询
            QueryResult<SiteComment> siteCommentQueryResult = GetScrollData(0, topNumber, orderByDictionary);
            //获取数据列表
            List<SiteComment> siteComments = siteCommentQueryResult.ResultList;
            return siteComments;
        }
    }
}
